package com.cn.springcloudwechat.service.articleAndMenu;


import com.cn.springcloudwechat.model.articleAndMenu.YmMenuTag;
import com.cn.springcloudwechat.model.articleAndMenu.vo.YmMenuTagVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @program: YmMenuTagService
 * @author: Administrator
 * @create: 2018-07-17 16:39
 */
public interface YmMenuTagService {
    /**
     * 添加菜单
     *
     * @param record
     * @return
     */
    int insertYmMenuTag(YmMenuTag record);

    /**
     * 菜单查询
     *
     * @param menuTagId
     * @return
     */
    YmMenuTag getOneYmMenuTag(Long menuTagId);

    /**
     * 更新菜单
     *
     * @param record
     * @return
     */
    int updateYmMenuTag(YmMenuTag record);


    /**
     * 查询所有菜单信息
     *
     * @param record
     * @return
     */
    List<YmMenuTag> getAllMenuTag(YmMenuTag record);

    /**
     * 查询一级菜单
     *
     * @return
     */
    List<YmMenuTag> getStairMenu();

    /**
     * 查询菜单树
     *
     * @param menuTagId
     * @return
     */
    List<YmMenuTagVo> getMenuTree(long menuTagId);
}
